package com.baidu.mobstat;

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Handler;
import java.util.Timer;

class h
  implements Runnable
{
  h(g paramg, Context paramContext)
  {
  }

  public void run()
  {
    SharedPreferences localSharedPreferences = this.b.a(this.a);
    g.a(this.b, localSharedPreferences.getBoolean("exceptionanalysisflag", false));
    if (g.a(this.b))
      e.a().b(this.a);
    if (g.b(this.b) != null)
    {
      g.b(this.b).cancel();
      g.a(this.b, null);
    }
    g.a(this.b, SendStrategyEnum.values()[localSharedPreferences.getInt("sendLogtype", 0)]);
    g.a(this.b, localSharedPreferences.getInt("timeinterval", 1));
    g.b(this.b, localSharedPreferences.getBoolean("onlywifi", false));
    if (g.c(this.b).equals(SendStrategyEnum.SET_TIME_INTERVAL))
      this.b.e(this.a);
    while (true)
    {
      g.b().postDelayed(new i(this), 1000 * g.e(this.b));
      return;
      if (!g.c(this.b).equals(SendStrategyEnum.ONCE_A_DAY))
        continue;
      this.b.e(this.a);
    }
  }
}

/* Location:           C:\Users\god\Desktop\liunianjishiben_V1.1_mumayi_3745b_dex2jar.jar
 * Qualified Name:     com.baidu.mobstat.h
 * JD-Core Version:    0.5.4
 */